package deep9jvmdvm;

/*
Java 线程优化 偏向锁，轻量级锁、重量级锁
 */
public class Testdeep9jvmdvm2 {
    private Object lock = new Object();
    private int value;

    public void setValue() {
        synchronized (lock) {
            value++;
        }
    }
}
